import request from "@/utils/request";

//列表查询
export const queryPageApi = (params) =>
  request.get("/depts", { params: params });
//添加部门
export const addDeptApi = (data) => request.post("/depts", data);
//根据id查询部门
export const queryByIdApi = (id) => request.get(`/depts/${id}`);
//更新部门
export const updateDeptApi = (data) => request.put("/depts", data);
//删除部门
export const deleteApi = (id) => request.delete(`/depts/${id}`);
